package com.qmctl.rest.bean.entryorderconfirm;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import com.qmctl.rest.entity.EntryOrderLines;
@XmlRootElement(name="orderLine")
public class OrderLineClazz{

  private String outBizCode;
  private String orderLineNo;
  private String ownerCode;
  private String itemCode;
  private String itemId;
  private String itemName;
  private String inventoryType;
  private long planQty;
  private long actualQty;
  private String batchCode;
  private String productDate;
  private String expireDate; 
  private String produceCode;
  @XmlElementWrapper(name="batchs")  
  @XmlElement(name="batch")  
  private List<BatchClazz> batchLst;
  private String remark;
  public OrderLineClazz(){
  }  
  public OrderLineClazz(EntryOrderLines beanClazz){
    outBizCode = beanClazz.getOutBizCode();
    orderLineNo = beanClazz.getOrderLineNo();
    ownerCode = beanClazz.getOwnerCode();
    itemCode = beanClazz.getItemCode();
    itemId = beanClazz.getItemId();
    itemName = beanClazz.getItemName();
    inventoryType = beanClazz.getInventoryType();
    planQty = beanClazz.getPlanQty();
    actualQty = beanClazz.getActualQty();
    batchCode = beanClazz.getBatchCode();
    productDate = beanClazz.getProductDate();
    expireDate = beanClazz.getExpireDate();
    produceCode = beanClazz.getProduceCode();
    batchLst = null;
    remark = beanClazz.getRemarks();
  }
  public String getOrderLineNo(){
    return orderLineNo;
  }
  public void setOrderLineNo(String sOrderLineNo){
    orderLineNo = sOrderLineNo;
  }
  public String getOwnerCode(){
    return ownerCode;
  }
  public void setOwnerCode(String sOwnerCode){
    ownerCode = sOwnerCode;
  }
  public String getItemCode(){
    return itemCode;
  }
  public void setItemCode(String sItemCode){
    itemCode = sItemCode;
  }
  public String getItemId(){
    return itemId;
  }
  public void setItemId(String sItemId){
    itemId = sItemId;
  }
  public String getItemName(){
    return itemName;
  }
  public void setItemName(String sItemName){
    itemName = sItemName;
  }
  public long getPlanQty(){
    return planQty;
  }
  public void setPlanQty(long iPlanQty){
    planQty = iPlanQty;
  }
  public long getActualQty(){
    return actualQty;
  }
  public void setActualQty(long iActualQty){
    actualQty = iActualQty;
  }
  public String getBatchCode(){
    return batchCode;
  }
  public void setBatchCode(String sBatchCode){
    batchCode = sBatchCode;
  }
  public String getProductDate(){
    return productDate;
  }
  public void setProductDate(String sProductDate){
    productDate = sProductDate;
  }
  public String getExpireDate(){
    return expireDate;
  }
  public void setExpireDate(String sExpireDate){
    expireDate = sExpireDate;
  }
  public String getProduceCode(){
    return produceCode;
  }
  public void setProduceCode(String sProduceCode){
    produceCode = sProduceCode;
  }
  @XmlElement(name="batch")
  public List<BatchClazz> getBatchs(){
    return batchLst;
  }
  public void setBatchs(List<BatchClazz> clazzBatchs){
	  batchLst = clazzBatchs;
  }
  public String getRemark(){
    return remark;
  }
  public void setRemark(String sRemark){
    remark = sRemark;
  }
public String getOutBizCode() {
	return outBizCode;
}
public void setOutBizCode(String outBizCode) {
	this.outBizCode = outBizCode;
}
public String getInventoryType() {
	return inventoryType;
}
public void setInventoryType(String inventoryType) {
	this.inventoryType = inventoryType;
}
}
